﻿package 
{
	import flash.display.Shape;

	public class Ball extends Shape
	{
		public var radius:Number;
		private var color:uint;
		public var explosionRange:Number;
		public var t:Number;
		public var vx:Number;
		public var vy:Number;
		public var x0:Number;
		public var y0:Number;

		public function Ball(posX:Number, posY:Number, radius:Number=3,color:uint=0x000000, expRange:Number=20)
		{
			this.x = posX; this.x0 = posX;
			this.y = posY; this.y0 = posY;
 			this.radius = radius;
			this.color = color;
			this.explosionRange = expRange;
			this.t = 0;

			graphics.beginFill(color);
			graphics.drawCircle(0,0,radius);
			graphics.endFill();
		}
	}
}